<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

<title>用户登录</title>

<link href="../CSS/login.css" rel="stylesheet" type="text/css" />

<script language="javascript" src="../js/checkform.js">

</script>


<script type="text/javascript">

function checkUser(){

	if(document.userInfo.username.value===""){
	window.alert("请输入用户名！");
	document.userInfo.username.focus();
	return false;
	}
	if(document.userInfo.password1.value===""){
	window.alert("请输入密码！");
	document.userInfo.password1.focus();
	return false;
	}
	else{
	userInfo.action="login.action";
	userInfo.submit();
	}
} 

function sysMsg()
{
	<%					String msg = (String)session.getAttribute("error_msg");
						if(msg!=null)
						{
							//out.print(msg);
							out.print("alert(\'" + msg + "\');");
							session.removeAttribute("error_msg");
						}
						String warn_msg = (String)session.getAttribute("warn_msg");
						if(warn_msg!=null)
						{
							//out.print(msg);
							out.print("alert(\'" + warn_msg + "\');");
							session.removeAttribute("warn_msg");
						}
	%>
}

</script>
</head>
<body onLoad ="sysMsg()" >



    <div id="login">

	

	     <div id="top">

		      <div id="top_left"><img src="../images/login_03.gif" /></div>

			  <div id="top_center"></div>

		 </div>

		 

		 <div id="center">

		      <div id="center_left"></div>

			  <div id="center_middle">

				<form name="userInfo" method="post" enctype="multipart/form-data">
			       <div id="user">用 户

			         <s:textfield name="username" value=""></s:textfield>

			       </div>
			         <div id="password">密 码

			         <s:password name="password1" value=""></s:password>

			       </div>



				   <div id="btn"><a onClick="checkUser()">登录</a><a 

onClick="javascript:window.location.href='../useredit/pwd_find.jsp'">忘记密码</a>
				   
				   </div>
				  
			       
			  </form>
					
			  </div>
			  

			  <div id="center_right"></div>		 

		 </div>

		 <div id="down">

		      <div id="down_left">

			      <div id="inf">

                       <span class="inf_text">版本信息</span>

					   <span class="copyright">&copy; 版权</a> | 电子邮件：admin@163.com | ASIMS Power by 

IBM.</span>

			      </div>

			  </div>

			  <div id="down_center"></div>		 

		 </div>



	</div>

</body>

</html>